package com.eight.travel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eight.travel.dao.StoreMapper;
import com.eight.travel.pojo.Store;
import com.eight.travel.utils.BaseResp;

import java.util.List;

public interface StoreService extends IService<Store> {

    //通过id查询一条商场信息
    BaseResp selectByID(Integer sid);

    //分页全查
    BaseResp selectAll(Integer page, Integer limit);

    //添加商场信息
    BaseResp addStore(Store store);

    //动态修改商场信息
    BaseResp updateStore(Store store);

    //通过id删除一条商场信息
    BaseResp deleteByID(Integer sid);

    //点击增加商场热度
    BaseResp updateStorehot(Integer sid);

    //商场热度排序
    BaseResp selectByHot(Integer page, Integer limit);

    //通过商场名模糊查询
    BaseResp selectByLike(String storename);


}
